package com.link.base.base.wechat.service;

import com.link.base.base.wechat.model.Messageresult;
import com.link.base.wechat.wxplatform.model.WxPlatform;
import com.link.core.basic.service.BasicService;

import java.util.List;
import java.util.Map;

/**
 * 消息管理service
 *
 * @author lujiang
 * @date 2018-05
 */

public interface MessageresultService extends BasicService<Messageresult> {


    /**
     * 群发接口
     *
     * @author lujiang
     * @date 2018-05
     * @param mediaId 素材id
     * @param platform 微信公众号
     * @param time     发送时间
     * @return success Or fail
     */
    String allSendMpnews(Long mediaId, WxPlatform platform, String time) throws Exception;

    /**
     * 即刻发送消息
     *
     * @author lujiang
     * @date 2019-03-05
     * @param list 消息list
     * @throws Exception
     */
    Map<String,Object> nowSend(List<Messageresult> list) throws Exception;
}
